package com.woniuxy01;

import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * @author 作者
 * @create 2025-06-05 9:32
 */
public class Test05 {
    public static void main(String[] args) {
        System.out.println(0.1+0.2);
        BigDecimal b1 = new BigDecimal("0.1");
        BigDecimal b2 = new BigDecimal("0.2");
        System.out.println(b1.add(b2));
        System.out.println(b1.subtract(b2));
        System.out.println(b1.multiply(b2));
        System.out.println(b1.divide(b2));



    }
}
